package org.linlinjava.litemall.admin.web.open_api;

import org.linlinjava.litemall.admin.vo.open_api.ReceivedCommodityVo;
import org.linlinjava.litemall.admin.web.order_manage.AgedmallOrderAfterSaleController;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author wj
 * @date 2021/9/23 18:34
 */
@RestController

@RequestMapping("/openapi")
public class OpenApiController {

    @Resource
    private AgedmallOrderAfterSaleController agedmallOrderAfterSaleController;

    @PostMapping("/afterSale/receivedCommodity")
    public Object receivedCommodity(@RequestBody ReceivedCommodityVo receivedCommodityVo){
        return agedmallOrderAfterSaleController.receivedCommodity( receivedCommodityVo.getId(),receivedCommodityVo.getCommodityId());
    }

}
